package day04;

import java.util.Scanner;

public class ForDemo {
    public static void main(String[] args) {
        /*for (int times=0;times<5;times++){
            System.out.println("行动是成功的阶梯");
        }
        for (int num=1;num<=9;num++){
            System.out.println(num+"*9="+num*9);
        }
        Scanner scan = new Scanner(System.in);
        System.out.println("猜吧");
        for (int guess = scan.nextInt();guess==500;guess= scan.nextInt());{
            System.out.println("猜吧");
        }*/
        int num=0;
        for (int a=1;a<=100;a++){
            num=num+a;
        }
        System.out.println("num="+num);

    }
}
